FROM registry.cn-hangzhou.aliyuncs.com/dockerhub_mirror/java:17-anolis

WORKDIR /datawin-sms-upms-biz

ARG JAR_FILE=./datawin-sms-upms-biz.jar

COPY ${JAR_FILE} app.jar

EXPOSE 4000

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms1g -Xmx3g -Djava.security.egd=file:/dev/./urandom"

CMD java $JAVA_OPTS -jar app.jar
